package cn.cgj.mapper;

import cn.cgj.domain.BusinessInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ${tableInfo.comment}Mapper接口
 *
 * @author cgj
 */
@Repository
public interface BusinessInfoMapper {
    /**
     * 查询${tableInfo.comment}
     *
     * @param id ${tableInfo.comment}主键
     * @return ${tableInfo.comment}
     */
    BusinessInfo selectBusinessInfoById(Integer id);

    /**
     * 查询${tableInfo.comment}列表
     *
     * @param businessInfo ${tableInfo.comment}
     * @return ${tableInfo.comment}集合
     */
    List<BusinessInfo> selectBusinessInfoList(BusinessInfo businessInfo);

    /**
     * 新增${tableInfo.comment}
     *
     * @param businessInfo ${tableInfo.comment}
     * @return 结果
     */
    int insertBusinessInfo(BusinessInfo businessInfo);

    /**
     * 修改${tableInfo.comment}
     *
     * @param businessInfo ${tableInfo.comment}
     * @return 结果
     */
    int updateBusinessInfo(BusinessInfo businessInfo);

    /**
     * 删除${tableInfo.comment}
     *
     * @param id ${tableInfo.comment}主键
     * @return 结果
     */
    int deleteBusinessInfoById(Integer id);

    /**
     * 批量删除${tableInfo.comment}
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteBusinessInfoByIds(String[] ids);

    /**
     * 批量新增${tableInfo.comment}
     *
     * @param businessInfoList ${tableInfo.comment}列表
     * @return 结果
     */
    int batchBusinessInfo(List<BusinessInfo> businessInfoList);

}

